﻿@using MvcCms.Service.Helpers

@if(Request.IsAuthenticated) {
    <text>Welcome <b>@Context.User.Identity.Name</b>!
    [  @Html.AreaActionLink("Profile", "Profile", "Project", new { area = "MvcCmsProjectTracker" }), @Html.AreaActionLink("My Help Desk", "MyHelpDesk", "Ticket", new { area = "MvcCmsProjectTracker" }), @Html.AreaActionLink("Log Off", "LogOff", "Account") ]</text>
}
else {
    @:[ @Html.AreaActionLink("Log On", "LogOn", "Account") ]
}
@if (Roles.IsUserInRole("Admin") || Roles.IsUserInRole("HelpDeskAdmin"))
{
    @:[ @Html.AreaActionLink("Settings", "Settings", "Project", new { area = "MvcCmsProjectTracker" }), @Html.AreaActionLink("Issues", "Index", "Bug", new { area = "MvcCmsProjectTracker" }) ]
}
[ <a href="/">Website Home Page</a> ]